/**
 ***********************************************************************
 * Program name: TestDbCon.java<br>
 * Program description: TODO<br>
 * Author: sugen<br>
 * Revision history:1.0<br>
 * <br>
 * Description of Change	Programmer		Date<br>
 * ---------------------    ----------      ----<br>
 * Initial creation			Su Gen		   2011-3-10 <br>
 * <br>
 * Copyright (c) 2011 by SUGEN ALL RIGHTS RESERVED<br>
 ************************************************************************
 */
package com.gen;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.common.DBCon;

public class TestDbCon {

	public static void main(String[] args) throws SQLException {
		// TODO Auto-generated method stub
		DBCon dbcon= new DBCon();
		ResultSet rs=dbcon.executeQuery("select  count(*) as c From dbo.DC_Others_Log");
		while(rs.next()){
			System.out.println(rs.getInt("c"));
		}
	}

}
